<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo4</title>
    <style>
        body{
            margin: 0;
            padding: 0;
        }
        .container{
            margin: 0 auto;
            border: 20px red dashed;
            padding: 10px 10px;
            width: 70px;
            height: 70px;
            background: url(../mJD/images/jd-sprites.png) no-repeat -156px -137px;
            background-clip: content-box;
            background-origin: border-box;
        }
    </style>
</head>
<body>
    <div class="container" onclick="aa()">
    </div>

    <script type="text/javascript">
        function aa() {
          alert(11)
        }
    </script>
</body>
</html>